<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>Test</title>
</head>
<body>
    <h3 th:text="${name}"></h3>
登录页面
    <h3 th:text="${msg}" style="color: red"></h3>
<form method="post" action="login">
    用户名：<input type="text" name="userName">
    密码：<input type="password" name="password">
    <input type="submit" value="提交"/>
</form>
</body>
</html>